package org.zjx.service.impl;

import org.zjx.db.NpcDB;
import org.zjx.model.game.Npc;
import org.zjx.service.NpcService;


public class NpcServiceImpl implements NpcService {
    @Override
    public Npc getNpc(Integer NpcId) {
        return new NpcDB().findById(NpcId);
    }

    @Override
    public Npc getNpc(String NpcName) {
        return new NpcDB().findByName(NpcName);
    }
}
